import java.awt.Menu;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import javax.swing.Action;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;

/**
 * the menu of the gui
 * @author Ronny
 *
 */
public class KomMapMenubar extends JMenuBar {
	private Menu kommapmenu, kommapsubmenu;
	private KomMap kommap;
	private ClearallAction clearallAction;
	private JMenuItem removePoint;

	public KomMapMenubar(KomMap kommap) {
		
		// File
		this.kommap = kommap;
		clearallAction = new ClearallAction(kommap);
		JMenu menuFile = new JMenu("File");
		this.add(menuFile);
		
		// subExit
		menuFile.add(new ExitAction().getInstance(kommap));
		JMenu runFile=new JMenu("Run");
		this.add(runFile);
		JMenuItem clearall=new JMenuItem();
		ClearallAction.name="Clear";
        clearall.setAction(clearallAction);
        clearall.setText("Clear All");
        runFile.add(clearall);
		
	}

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

}
